package com.study.talk.module.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.study.talk.module.entity.MomentComment;
import com.study.talk.module.entity.MomentLike;
import com.study.talk.module.mapper.MomentCommentMapper;
import com.study.talk.module.mapper.MomentLikeMapper;
import com.study.talk.module.service.MomentCommentService;
import com.study.talk.module.service.MomentLikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author thor
 * @since 2024-3-13
 */
@Service
@Transactional
public class MomentCommentServiceImpl extends ServiceImpl<MomentCommentMapper, MomentComment> implements MomentCommentService {

    @Autowired
    private MomentCommentMapper momentCommentMapper;

    @Override
    public ArrayList<MomentComment> getListByMomentId(Integer momentId) {
        return momentCommentMapper.queryListByMomentId(momentId);
    }
}
